/**
 * MineAdmin is committed to providing solutions for quickly building web applications
 * Please view the LICENSE file that was distributed with this source code,
 * For the full copyright and license information.
 * Thank you very much for using MineAdmin.
 *
 * @Author X.Mo<root@imoi.cn>
 * @Link   https://github.com/mineadmin
 */

import type { MaSearchItem } from '@mineadmin/search'


export default function getSearchItems(t: any): MaSearchItem[] {
    return [
    { label: '开始时间，控制播放时间段', prop: 'start_time', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: '开始时间，控制播放时间段'}) } },
    { label: '结束时间，控制播放时间段', prop: 'end_time', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: '结束时间，控制播放时间段'}) } },
    { label: '执行日期，逗号间隔，按不同重复类型', prop: 'execution_day', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: '执行日期，逗号间隔，按不同重复类型'}) } },
    { label: '重复类型：1-不重复，2-每天，3-每周，4-每月', prop: 'repeat_type', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: '重复类型：1-不重复，2-每天，3-每周，4-每月'}) } },
    { label: '重复间隔（分钟）', prop: 'repeat_interval', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: '重复间隔（分钟）'}) } },
    { label: '重复次数', prop: 'repeat_count', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: '重复次数'}) } },
    { label: '触发事件ID', prop: 'trigger_event', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: '触发事件ID'}) } },
    { label: '音量', prop: 'volume_day', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: '音量'}) } },
    { label: '最后执行时间', prop: 'last_execution_time', render: 'DatePicker', renderProps: { placeholder: t('form.pleaseInput', { msg: '最后执行时间'}), type: 'datetimerange', 'range-separator': '到', 'start-placeholder': '开始日期', 'end-placeholder': '结束日期', format: 'YYYY-MM-DD hh:mm:ss', 'value-format': 'YYYY-MM-DD hh:mm:ss', 'default-time': [new Date(2000, 1, 1, 0, 0, 0),new Date(2000, 2, 1, 23, 59, 59)] }, mode: 'date', showTime: true },
    { label: '已执行次数', prop: 'execution_count', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: '已执行次数'}) } },
  ]
}
